import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

const state = {
  theme: 'chalk'
}
const mutations = {
  changeTheme(state) {
    if(state.theme === 'chalk') {
      state.theme = 'vintage'
    } else {
      state.theme = 'chalk'
    }
  }
}
const actions = {}

export default new Vuex.Store({
  state,
  actions,
  mutations
})
